﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/AdminTemplate.Master" AutoEventWireup="true" CodeBehind="FeaturedAds.aspx.cs" Inherits="RealtorsPortal.AdminCP.FeaturedAds" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Featured advertisements</title>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            //set option
            $("#navheadSettings").addClass("selected");
            $("#mnuSettings").css("display", "block");
            $(".submenu li a[title='Featured ads']").css({ "color": "#fff", "background": "#222", "border": "1px solid #333" });

            $("#contentArea").tabs(); //tab view
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Featured advertisements</h1>
____________________________________________________________________________________
    <asp:GridView ID="grvFeaturedAds" runat="server" AutoGenerateColumns="False" Width="100%" AllowPaging="True" PageSize="5" DataKeyNames="AdvId" OnRowCommand="grvManageAdver_RowCommand">
                <HeaderStyle CssClass="header_gridview" />
                <Columns>
                    <asp:TemplateField HeaderText="Title">
                        <ItemTemplate>
                            <%#Eval("Title")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Type">
                        <ItemTemplate>
                            <%#Eval("Type")%>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="Category">
                        <ItemTemplate>
                            <%#Eval("Type")%>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="Price">
                        <ItemTemplate>
                            <%#Eval("Price")%>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="View">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnBrowse" runat="server" CommandName="BrowseComponent"
                                ValidationGroup="browse" CausesValidation="True"
                                CommandArgument='<%# DataBinder.Eval(Container, "RowIndex") %>'>
                                <asp:Image ID="ibtnBrowse" runat="server" ImageUrl="assets/b_browse.png" />
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="Action">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnDisable" runat="server" CommandName="DisableComponent"
                                ValidationGroup="disable" CausesValidation="True"
                                CommandArgument='<%# DataBinder.Eval(Container, "RowIndex") %>'>
                                Disable featured
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>

</asp:Content>
